const express = require('express')
var birds = require('./birds')
var bodyParser = require('body-parser')

const app = express()

// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))

// parse application/json
app.use(bodyParser.json())

const port = 3000
app.use(birds)
app.use(express.static('public'))

app.listen(port, () => console.log(`Example app listening on port ${port}!`))